package com.intramirror.product.schedule.consumer;

import com.intramirror.product.service.FacilityService;

/**
 * Created on 2018/4/17.
 * @author 123
 */
public class ConsumerFactory {

    public static IProductConsumer getConsumer(int consumerId, FacilityService facilityService) {
        switch (consumerId) {
        case 1:
            return new SnapshotConsumer(facilityService);
        case 2:
            return new AISelectConsumer(facilityService);
        case 3:
            return new SpuUpdateConsumer(facilityService);
        case 4:
            return new CalculatePrdPrePriceConsumer(facilityService);
        default:
            return null;
        }
    }
}
